import java.util.ArrayList;
import java.util.List;

public class Test {
    public static void func(String str1, String str2){
        ArrayList<Character> character = new ArrayList<>();
     for(int i = 0; i < str1.length();i++){
         char ch = str1.charAt(i);
         if(!str2.contains(ch+"")){//任何字符+ “”  都是字符串
             character.add(ch);

         }
     }
        //System.out.println(character);
        for (int i = 0; i < character.size(); i++) {
            System.out.print(character.get(i));
        }
        System.out.println();

    }


    public static void main(String[] args) {
        func("welcom to bit","come");

    }


    public static void main1(String[] args) {
        ArrayList <Integer>  arrayList = new ArrayList<>();//数组的初始化长度为0
        List<String> list = new ArrayList<>();
        list.add("hello");
        list.add("world");
        ArrayList<String> list1 = new ArrayList<>(list);
        list1.add("hhhh");
        list1.addAll(list);
        String ret = list1.remove(1);
        System.out.println("=====");
        System.out.println(ret);
        list1.clear();
    }
}
